<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{block name="title"}成都玛瑞莎业务系统{/block}</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="__CSS__/bootstrap.min.css">
    <!--<link href="__CSS__/material-kit.css" rel="stylesheet"/>-->
    <link rel="stylesheet" href="__CSS__/font-awesome.css">
    <link rel="stylesheet" href="__CSS__/daterangepicker.css">
    <link rel="stylesheet" href="__CSS__/ionicons.css">
    <link rel="stylesheet" href="__CSS__/AdminLTE.min.css">
    <link rel="stylesheet" href="__CSS__/_all-skins.min.css">
    <link rel="stylesheet" href="__CSS__/charisma-app.css">
    <link rel="stylesheet" href="__CSS__/bootstrapValidator.min.css">
    <script type="text/javascript" src="__JS__/jquery-2.2.3.min.js"></script>
    <script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <!-- 顶部导航条开始 -->
    <header class="main-header">
        <a href="#" class="logo">
            <span class="logo-mini"><b>M</b>RS</span>
            <span class="logo-lg"><b>玛瑞莎O2O业务系统</b>MRS</span>
        </a>
        <nav class="navbar navbar-static-top">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!--<li class="dropdown messages-menu">-->
                        <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
                            <!--<i class="fa fa-envelope-o"></i>-->
                            <!--<span class="label label-success">4</span>-->
                        <!--</a>-->
                        <!--<ul class="dropdown-menu">-->
                            <!--<li class="header">你有四条新消息</li>-->
                            <!--<li>-->
                                <!--<ul class="menu">-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="__STATIC__/images/user2-160x160.jpg" class="img-circle" alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Support Team-->
                                                <!--<small><i class="fa fa-clock-o"></i> 5 mins</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="__STATIC__/images/user3-128x128.jpg" class="img-circle" alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--AdminLTE Design Team-->
                                                <!--<small><i class="fa fa-clock-o"></i> 2 hours</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="__STATIC__/images/user4-128x128.jpg" class="img-circle" alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Developers-->
                                                <!--<small><i class="fa fa-clock-o"></i> Today</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="__STATIC__/images/user3-128x128.jpg" class="img-circle" alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Sales Department-->
                                                <!--<small><i class="fa fa-clock-o"></i> Yesterday</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="__STATIC__/images/user4-128x128.jpg" class="img-circle" alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Reviewers-->
                                                <!--<small><i class="fa fa-clock-o"></i> 2 days</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                <!--</ul>-->
                            <!--</li>-->
                        <!--</ul>-->
                    <!--</li>-->


                    <li class="dropdown notifications-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" onclick="location.href='/admin/yewu/olist?txact=1';" alt="邀约今日追踪" title="邀约今日追踪">
                            <i class="fa fa-bell-o"></i>
                            <span class="label label-warning">{$jrzznum}</span>
                        </a>
                        <!--<ul class="dropdown-menu">-->
                            <!--{eq name="jrzznum" value="0"}-->
                            <!--<li class="header">邀约今日追踪</li>-->
                            <!--{else/}-->
                            <!--<li class="header">你有{$jrzznum}条今日追踪顾客提醒</li>-->
                            <!--{/eq}-->
                        <!--</ul>-->
                    </li>



                    <!--<li class="dropdown tasks-menu">-->
                        <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
                            <!--<i class="fa fa-flag-o"></i>-->
                            <!--<span class="label label-danger">9</span>-->
                        <!--</a>-->
                        <!--<ul class="dropdown-menu">-->
                            <!--<li class="header">你有9个任务</li>-->
                            <!--<li>-->
                                <!--<ul class="menu">-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Design some buttons-->
                                                <!--<small class="pull-right">20%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">-->
                                                    <!--<span class="sr-only">20% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Create a nice theme-->
                                                <!--<small class="pull-right">40%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">-->
                                                    <!--<span class="sr-only">40% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Some task I need to do-->
                                                <!--<small class="pull-right">60%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">-->
                                                    <!--<span class="sr-only">60% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Make beautiful transitions-->
                                                <!--<small class="pull-right">80%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">-->
                                                    <!--<span class="sr-only">80% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                <!--</ul>-->
                            <!--</li>-->
                        <!--</ul>-->
                    <!--</li>-->



                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="{$Think.session.admin_user.avr|default='__STATIC__/images/user2-160x160.jpg'}" class="user-image" alt="User Image">
                            <span class="hidden-xs">{$Think.session.admin_user.username} </span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <img src="{$Think.session.admin_user.avr|default='__STATIC__/images/user2-160x160.jpg'}" class="img-circle" alt="User Image">
                                <p>
                                    {$Think.session.admin_user.username}
                                    <small> {$Think.session.admin_user.depar_name}</small>
                                </p>
                            </li>
                            <li class="user-body">
                                <div class="row">
                                    <div class="col-xs-4 text-center">
                                        <a class="btn btn-default  confirm-rst-password">修改密码</a>
                                    </div>
                                    <!--<div class="col-xs-4 text-center">-->
                                        <!--<a href="#">销售</a>-->
                                    <!--</div>-->
                                    <!--<div class="col-xs-4 text-center">-->
                                        <!--<a href="#">朋友</a>-->
                                    <!--</div>-->
                                <!--</div>-->
                            </li>
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="{:url('admin/login/clear')}" class="btn btn-default btn-flat confirm-rst-btn" data-info="确定要清理缓存吗？">清除缓存</a>
                                </div>
                                <div class="pull-right">
                                    <a href="{:url('admin/login/logout')}" class="btn btn-default btn-flat">退出登录</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- 顶部导航条结束 -->
    <!-- 左侧栏开始 -->
    <aside class="main-sidebar">
        <section class="sidebar">
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="{$Think.session.admin_user.avr|default='__STATIC__/images/user2-160x160.jpg'}" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>{$Think.session.admin_user.username}</p>
                    <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                </div>
            </div>
            {include file='admin@public:left_sidebar' /}
        </section>
    </aside>
    <!-- 左侧栏结束 -->
    <div class="content-wrapper">
        {block name="no_breadcrumb"}
            <section class="content-header">
                <h1>
                    {block name="theme"}主题名称{/block}
                    <small>{block name="small_theme"}副标题名称{/block}</small>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="{:url('index/index')}"><i class="fa fa-dashboard"></i> 首页</a></li>
                    {block name="breadcrumb"}
                        <li><a href="#">菜单名称</a></li>
                        <li class="active">当前操作名称</li>
                    {/block}
                </ol>
            </section>
        {/block}
        {block name="content"}
            页面主要内容
        {/block}
    </div>
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 1.0
        </div>
        <strong>Copyright &copy; 2017 <a>集团大电商-技术部</a>.</strong>
    </footer>
    <script>
        // 定义全局JS变量
        var GV = {
            current_controller: "{$module}/{$controller|default=''}/",
            base_url: "__STATIC__"
        };
    </script>
    {block name="moal"}{/block}
    <script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
    <script type="text/javascript" src="__JS__/fastclick.js"></script>
    <script type="text/javascript" src="__JS__/app.min.js"></script>
    <!--<script type="text/javascript" src="__JS__/app.min.js"></script>-->
    <script type="text/javascript" src="__JS__/icheck.min.js"></script>
    <script type="text/javascript" src="__JS__/moment.js"></script>
    <script type="text/javascript" src="__JS__/daterangepicker.js"></script>
    <script type="text/javascript" src="__JS__/ajaxForm.js"></script>
    <script type="text/javascript" src="__JS__/common.js"></script>
    <script src="__JS__/bootstrapValidator.min.js"></script>
    <script src="__JS__/language/zh_CN.js"></script>
    <script type="text/javascript">
        $(function () {
            $('body').on('click','.confirm-rst-btn',function () {
                var $url = this.href,
                    $info = $(this).data('info');
                layer.confirm($info, {icon: 3}, function (index) {
                    layer.close(index);
                    $.post($url, {}, function (data) {
                        layer.alert(data.msg, {icon: 6});
                    }, "json");
                });
                return false;
            });
            $('.confirm-rst-password').on('click',function () {
                var url = "{:url('admin/login/editpassword')}";
                layer.open({
                    type: 2,
                    anim:6,
                    skin: 'layui-layer-lan', //样式类名
                    title: '更新密码',
                    shadeClose: true,
                    shade: 0.8,
                    area: ['50%', '80%'],
                    content: url,
                });
                return false;
            });
        });
    </script>
    {block name="js"}
    {/block}
</div>
</body>
</html>